<?php

use think\facade\Route;

//登录页面
Route::rule('/login/index','login/index')->middleware('CheckLogin');
//登录校验
Route::rule('/login/login','login/login')->middleware('CheckLogin');
//验证码
Route::rule('/login/verify','login/verify');

//管理员模块
Route::rule('/admin/index','admin/index');
Route::rule('/admin/add','admin/add');
Route::rule('/admin/edit','admin/edit');
Route::rule('/admin/delete','admin/delete');

//角色管理
Route::rule('/role/index','role/index');
Route::rule('/role/add','role/add');
Route::rule('/role/edit','role/edit');
Route::rule('/role/delete','role/delete');

//菜单权限
Route::rule('/permission/index','permission/index');

//控制台
Route::rule('/workspace/console','workspace/console');

//数据分析
Route::rule('/workspace/analyse','workspace/analyse');

//后台首页
Route::rule('/index/index','index/index');
//后台测试
Route::rule('/test/test1','test/test1');